<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/12/4 0004
  Time: 14:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8"  import="java.util.*,java.text.*" language="java" %>
<html>
  <head>
    <title>显示当前时间</title>
    <link href="css/index.css" type="text/css" rel="stylesheet">
  </head>
  <body>
  <%=application.getRealPath("")%>
 <%
    Date d=new Date();
    //out.print(d);
    SimpleDateFormat df=new SimpleDateFormat("yyyy-MM-dd hh时mm分ss秒");
    String str=df.format(d);
    out.print(str);
 %>
<h1>
  <%=str%>,,,<%=Math.random()%>
</h1>
  <hr/>
  <img src="img/kongzi.jpg"/>
  </body>
</html>
